﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ensemble_Windows
{
    /// <summary>
    /// 基本配置
    /// </summary>
    public class Configuration
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int Height { get; set; }
        /// <summary>
        /// 等待垂直消隐
        /// </summary>
        public bool WaitVerticalBlanking { get; set; }
        
        /// <summary>
        /// 窗体配置
        /// </summary>
        public Configuration()
            : this("")
        { }

        /// <summary>
        /// 窗体配置
        /// </summary>
        /// <param name="title">标题</param>
        public Configuration(string title)
            : this(title, 800, 600)
        { }

        /// <summary>
        /// 窗体配置
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="width">宽度</param>
        /// <param name="height">高度</param>
        public Configuration(string title, int width, int height)
        {
            Title = title;
            Width = width;
            Height = height;
            WaitVerticalBlanking = false;
        }
    }
}
